//
//  XuanZeKeShiTopCell.m
//  SanYiTeaching
//
//  Created by 李文强 on 2019/6/3.
//  Copyright © 2019 SanYi. All rights reserved.
//

#import "XuanZeKeShiTopCell.h"

@implementation XuanZeKeShiTopCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if ([super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self initSubView];
        [self initOption];
        [self layout];
    }
    return self;
}
- (void)initSubView{
    [self addSubview:self.banJiMingChengView];
    [self addSubview:self.fuDaoLaoShiView];
    [self addSubview:self.fuDaoLeiXingView];
}
- (void)initOption{
    
}
- (void)layout{
    [_banJiMingChengView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.equalTo(self.mas_centerX);
        make.top.equalTo(self.mas_top).offset(10);
        make.width.equalTo(@350);
        make.height.equalTo(@50);
    }];
    [_fuDaoLaoShiView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.equalTo(self.mas_centerX);
        make.top.equalTo(self->_banJiMingChengView.mas_bottom).offset(10);
        make.width.equalTo(@350);
        make.height.equalTo(@50);
    }];
    [_fuDaoLeiXingView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.equalTo(self.mas_centerX);
        make.top.equalTo(self->_fuDaoLaoShiView.mas_bottom).offset(10);
        make.width.equalTo(@350);
        make.height.equalTo(@50);
    }];
}
- (XuanZeKeShiDefultView *)banJiMingChengView{
    if (!_banJiMingChengView) {
        XuanZeKeShiDefultView *banJiMingChengView = [[XuanZeKeShiDefultView alloc]initWithFrame:CGRectMake(0, 0, 320, 50)];
        banJiMingChengView.leftTitleLabel.text = @"班级名称:";
        banJiMingChengView.userInteractionEnabled = NO;
        _banJiMingChengView = banJiMingChengView;
    }
    return _banJiMingChengView;
}
- (XuanZeKeShiDefultView *)fuDaoLaoShiView{
    if (!_fuDaoLaoShiView) {
        XuanZeKeShiDefultView *banJiMingChengView = [[XuanZeKeShiDefultView alloc]initWithFrame:CGRectMake(0, 0, 320, 50)];
        banJiMingChengView.leftTitleLabel.text = @"辅导老师:";
        banJiMingChengView.userInteractionEnabled = NO;
        _fuDaoLaoShiView = banJiMingChengView;
    }
    return _fuDaoLaoShiView;
}
- (XuanZeKeShiDefultView *)fuDaoLeiXingView{
    if (!_fuDaoLeiXingView) {
        XuanZeKeShiDefultView *banJiMingChengView = [[XuanZeKeShiDefultView alloc]initWithFrame:CGRectMake(0, 0, 320, 50)];
        banJiMingChengView.leftTitleLabel.text = @"辅导类型:";
        banJiMingChengView.userInteractionEnabled = NO;
        _fuDaoLeiXingView = banJiMingChengView;
    }
    return _fuDaoLeiXingView;
}

//返回字符的函数
//char GetHanSHu(int name){
//    return "haha";
//}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
